package com.gzz.orchid.context.domain.rbac;

import com.gzz.orchid.context.domain.rbac.entity.OrganizationDo;

/**
 * @author higmd
 */
public interface IOrganizationService {
    /**
     * 检查编码是否唯一
     */
    void checkCodeUnique(OrganizationDo organizationDo) throws IllegalArgumentException;

    /**
     * 检查编码是否存在
     */
    void checkCodeExists(String code) throws IllegalArgumentException;
}
